package com.aidong.job;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.quartz.JobExecutionContext;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

import com.aidong.service.PtExpiredReportService;

@Component
public class PtExpiredReportJob extends QuartzJobBean {
    protected Logger       log = Logger.getLogger(this.getClass());

    @Resource
    PtExpiredReportService ptExpiredReportService;

    @Override
    public void executeInternal(JobExecutionContext arg0) {
        try {
            log.info("剩余PT分析报表作成JOB开始。");
            ptExpiredReportService.doJob();
            log.info("剩余PT分析报表作成JOB结束。");
        } catch (Throwable e) {
            log.info("剩余PT分析报表作成JOB失败。");
            e.printStackTrace();
        }
    }
}
